package com.project.common.filter;

public enum Operator {
    EQUAL(0, "EQUAL", "="),
    NOT_EQUAL(1, "NOT_EQUAL", "<>"),
    LESS_THAN(2, "LESS_THAN", "<"),
    LESS_THAN_OR_EQUAL(3, "LESS_THAN_OR_EQUAL", "<="),
    GREAT_THAN(4, "GREAT_THAN", ">"),
    GREAT_THAN_OR_EQUAL(5, "GREAT_THAN_OR_EQUAL", ">="),
    END_WITH(6, "END_WITH", "like"),
    NOT_END_WITH(7, "NOT_END_WITH", "not like"),
    START_WITH(8, "START_WITH", "like"),
    NOT_START_WITH(9, "NOT_START_WITH", "not like"),
    CONTAINS(10, "CONTAINS", "like"),
    NOT_CONTAINS(11, "NOT_CONTAINS", "not like"),
    IN(12, "IN", "in"),
    NOT_IN(13, "NOT_IN", "not in"),
    NULL(14, "NULL", "is null"),
    NOT_NULL(15, "NOT_NULL", "is not null"),
    BETWEEN(16, "BETWEEN", "between"),
    NOT_BETWEEN(17, "NOT_BETWEEN", "not between");

    private int id;
    private String name;
    private String value;

    Operator(int id, String name, String value) {
        this.id = id;
        this.name = name;
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    public int getId() {
        return this.id;
    }
}
